#include<stdio.h>
#include<stdlib.h>
#include<sys/types.h>
#include<sys/ipc.h>
#include<sys/shm.h>
#include<sys/sem.h>
#include<string.h>
#define _PATH_ "."
#define _PROJ_ID_ 0x6666


int creat_shm(int shm_size);
int get_shm();
void *at_shm(int shm_id);
int delete_shm(void *addr);
int distroy_shm(int shm_id);
int creat_sem(int nsems);
int get_sem(int nsems);
int init_sem(int sem_id,int which);
int p_sem_op(int sem_id,int which);
int v_sem_op(int sem_id,int which);
